#include "mainwindow.h"
#include "./ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
  : QMainWindow(parent)
  , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    ui->stackedWidget->insertWidget(0, &adsPage);
    ui->stackedWidget->insertWidget(1, &proflPage);
    ui->stackedWidget->setCurrentIndex(1);
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_adsButtonShowPage_clicked()
{
    ui->stackedWidget->setCurrentIndex(0);
}

void MainWindow::on_profileButtonShowPage_clicked()
{
    ui->stackedWidget->setCurrentIndex(1);
}

